package com.seezoon.admin.modules.sys.service.impl;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.seezoon.admin.framework.service.impl.BaseServiceImpl;
import com.seezoon.admin.modules.sys.service.ISysLoginLogService;
import com.seezoon.dao.modules.sys.SysLoginLogMapper;
import com.seezoon.dao.modules.sys.entity.SysLoginLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 登录日志
 *
 * @author seezoon-generator 2021年4月18日 上午1:30:18
 */
@Service
@Slf4j
public class SysLoginLogServiceImpl extends BaseServiceImpl<SysLoginLogMapper, SysLoginLog> implements ISysLoginLogService {

    @Async
    @Override
    public void asyncSave(@Valid @NotNull SysLoginLog record) {
        super.save(record);
    }
}
